/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.evl.tecinfo.gui;

import br.com.evl.tecinfo.modelo.Area;
import br.com.evl.tecinfo.modelo.Permissao;
import br.com.evl.tecinfo.modelo.Usuario;
import java.text.ParseException;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFormattedTextField;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Tecinfo
 */
public class CadastrarUsuario extends javax.swing.JFrame {
   
    int linha = -1;
    int nada = 0;
    int mundial = 2;
    

    
 public static Object ErroParaInt(String conteudo) {
     
     
      
             //setValidCharacters("AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz_");  
     /*try{
      * int contint = Integer.parseInt(conteudo);
      * while (contint <= 0 ){
      * 
      * 
      * }
      * 
      * }catch (Exception e) {
      * JOptionPane.showMessageDialog(null,"Digite os valores corretamente",null,JOptionPane.INFORMATION_MESSAGE);
      * }
      * 
      */ return 0;
    } 
  
 public static Object ErroParaString(String Erro){
     try{
        int ErroInt = Integer.parseInt(Erro);
        if (ErroInt <= 0){
            JOptionPane.showMessageDialog(null, "");
            
        }
         
     }catch (Exception e){
            JOptionPane.showMessageDialog(null, "Informe valores válidos");
     }
     
     
     
     
     
     return null;
     
 }

 
    public CadastrarUsuario() {
        initComponents();
        ct_abrevUsuario.setVisible(false);
        ct_codigoUsuario.setVisible(false);
        jb_abrevUsuario.setVisible(false);
        jb_codigoUsuario.setVisible(false);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        bt_edituser = new javax.swing.JButton();
        jScrollPane3 = new javax.swing.JScrollPane();
        tb_edituser = new javax.swing.JTable();
        bt_limparuser = new javax.swing.JButton();
        bt_salvaruser = new javax.swing.JButton();
        jl_cargo2 = new javax.swing.JLabel();
        ct_usereditname = new javax.swing.JTextField();
        jl_username = new javax.swing.JLabel();
        jla_usercpf = new javax.swing.JLabel();
        cb_usereditarea = new javax.swing.JComboBox();
        cb_usereditcargo = new javax.swing.JComboBox();
        jl_area2 = new javax.swing.JLabel();
        ct_usereditcpf = new javax.swing.JTextField();
        try{
            javax.swing.text.MaskFormatter cpf= new javax.swing.text.MaskFormatter("###.###.###-##");
            ct_usereditcpf = new javax.swing.JFormattedTextField(cpf);
        }
        catch (Exception e){
            JOptionPane.showMessageDialog(null,"Informe um CPF valido", null,JOptionPane.INFORMATION_MESSAGE);
        } 
        bt_cadastrar_usuario = new javax.swing.JButton();
        jb_remover = new javax.swing.JButton();
        ct_abrevUsuario = new javax.swing.JTextField();
        ct_codigoUsuario = new javax.swing.JTextField();
        jb_abrevUsuario = new javax.swing.JLabel();
        jb_codigoUsuario = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();

        bt_edituser.setText("Editar");
        bt_edituser.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_edituserActionPerformed(evt);
            }
        });

        tb_edituser.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nome", "CPF", "Cargo", "Area"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tb_edituser.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        tb_edituser.setDragEnabled(true);
        tb_edituser.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane3.setViewportView(tb_edituser);

        bt_limparuser.setText("Limpar");
        bt_limparuser.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                bt_limparuserMouseClicked(evt);
            }
        });
        bt_limparuser.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_limparuserActionPerformed(evt);
            }
        });

        bt_salvaruser.setText("Atualizar dados");
        bt_salvaruser.setVisible(false);
        bt_salvaruser.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_salvaruserActionPerformed(evt);
            }
        });

        jl_cargo2.setText("Cargo:");

        jl_username.setText("Nome:");

        jla_usercpf.setText("CPF:");

        cb_usereditarea.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecionar", "Ed. Infantil", "Ens. Fundamental I", "Ens. Fundamental II", "Ens. Médio", "Serviço" }));
        cb_usereditarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cb_usereditareaActionPerformed(evt);
            }
        });

        cb_usereditcargo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecionar", "Coordenador", "Professor", "Auxiliar" }));

        jl_area2.setText("Área:");

        bt_cadastrar_usuario.setText("Cadastrar");
        bt_cadastrar_usuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_cadastrar_usuarioActionPerformed(evt);
            }
        });

        jb_remover.setText("Remover");
        jb_remover.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_removerActionPerformed(evt);
            }
        });

        jb_abrevUsuario.setText("Abreviação");

        jb_codigoUsuario.setText("Codigo:");

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel1.setText("Cadastrar Usuário");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(27, 27, 27)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jla_usercpf)
                                        .addGap(18, 18, 18)
                                        .addComponent(ct_usereditcpf, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jl_cargo2)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(cb_usereditcargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jl_username)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(ct_usereditname, javax.swing.GroupLayout.PREFERRED_SIZE, 258, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addGroup(layout.createSequentialGroup()
                                                .addComponent(jl_area2)
                                                .addGap(18, 18, 18)
                                                .addComponent(cb_usereditarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(layout.createSequentialGroup()
                                                .addGap(74, 74, 74)
                                                .addComponent(ct_abrevUsuario)))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jb_codigoUsuario)
                                        .addGap(8, 8, 8)
                                        .addComponent(ct_codigoUsuario))))
                            .addGroup(layout.createSequentialGroup()
                                .addContainerGap()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jb_abrevUsuario)
                                    .addComponent(bt_cadastrar_usuario, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(bt_limparuser)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(bt_edituser)
                                .addGap(8, 8, 8)
                                .addComponent(bt_salvaruser)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jb_remover, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(193, Short.MAX_VALUE))
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jl_username)
                            .addComponent(ct_usereditname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jla_usercpf)
                            .addComponent(ct_usereditcpf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jl_cargo2)
                            .addComponent(cb_usereditcargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jl_area2)
                            .addComponent(cb_usereditarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(ct_abrevUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(ct_codigoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jb_abrevUsuario)
                            .addComponent(jb_codigoUsuario))
                        .addGap(35, 35, 35)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(bt_limparuser)
                            .addComponent(bt_edituser)
                            .addComponent(bt_cadastrar_usuario)
                            .addComponent(bt_salvaruser)
                            .addComponent(jb_remover)))
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(65, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void bt_edituserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_edituserActionPerformed
        // TODO add your handling code here:
        // Editar(linha);
        try{
            
            linha = tb_edituser.getSelectedRow();
            if (linha != -1 ) {
            
            bt_salvaruser.setVisible(true);
            bt_cadastrar_usuario.setVisible(false);
            ct_usereditname.setText((String) tb_edituser.getValueAt(linha, 0));
            ct_usereditcpf.setText((String)tb_edituser.getValueAt(linha,1));
            cb_usereditcargo.setSelectedItem((String)tb_edituser.getValueAt(linha, 2));
            cb_usereditarea.setSelectedItem((String) tb_edituser.getValueAt(linha, 3));
           
                
            }
           
        }catch(Exception e){
            JOptionPane.showMessageDialog(null, "Selecione uma linha");
             bt_salvaruser.setVisible(false);
             linha = -1;
             nada = 0;
        }
        
    }//GEN-LAST:event_bt_edituserActionPerformed

    private void bt_limparuserMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bt_limparuserMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_bt_limparuserMouseClicked

    private void bt_limparuserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_limparuserActionPerformed
        // TODO add your handling code here:
        ct_usereditname.setText("");
        ct_usereditcpf.setText("");
        cb_usereditarea.setSelectedIndex(0);
        cb_usereditcargo.setSelectedIndex(0);
    }//GEN-LAST:event_bt_limparuserActionPerformed

    private void bt_salvaruserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_salvaruserActionPerformed
        // TODO add your handling code here:
      
        if (linha != -1){

            if (ct_usereditname.getText().equals("") || ct_usereditcpf.getText().equals("")){
                JOptionPane.showMessageDialog(null, "Preencha os campos corretamente", null, JOptionPane.ERROR_MESSAGE);

            }else if(cb_usereditcargo.getSelectedIndex() == 0 || cb_usereditarea.getSelectedIndex() == 0) {
                JOptionPane.showMessageDialog(null, "Preencha os campos corretamente", null, JOptionPane.ERROR_MESSAGE);

            }else{
                // DefaultTableModel dtm = (DefaultTableModel) tb_tabela.getModel();
                //Object[] opcoes = {ct_nome.getText(), ct_endereco.getText(), ct_cpf.getText(), ct_idade.getText(), cb_selecao.getSelectedItem()};
                tb_edituser.setValueAt(ct_usereditname.getText(),linha,0);
                tb_edituser.setValueAt(ct_usereditcpf.getText(),linha,1);
                tb_edituser.setValueAt(cb_usereditcargo.getSelectedItem(),linha,2);
                tb_edituser.setValueAt(cb_usereditarea.getSelectedItem(),linha,3);

                int confirmacao = JOptionPane.showConfirmDialog(null,"Deseja prosseguir com a operação?",null,JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE);
                if (confirmacao == JOptionPane.YES_OPTION){
                    JOptionPane.showMessageDialog(null,"Atualização feita com sucesso!",null,JOptionPane.INFORMATION_MESSAGE);
                }
                ct_usereditname.setText("");
                ct_usereditcpf.setText("");
                cb_usereditarea.setSelectedIndex(0);
               
                cb_usereditcargo.setSelectedIndex(0);
                tb_edituser.clearSelection();
                linha = -1;
                nada = 0;
                bt_salvaruser.setVisible(false);
                bt_cadastrar_usuario.setVisible(true);
            }
        }
    }//GEN-LAST:event_bt_salvaruserActionPerformed

    private void bt_cadastrar_usuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_cadastrar_usuarioActionPerformed
        // TODO add your handling code here:

        if (linha == -1) {
            /*try {*/
                if(nada == 2) {
                }
                if (ct_usereditname.getText().equals("") || ct_usereditcpf.getText().equals("") ){
                    JOptionPane.showMessageDialog(null, "Preencha os campos corretamente", null, JOptionPane.ERROR_MESSAGE);

                }else if(cb_usereditcargo.getSelectedIndex() == 0 || cb_usereditarea.getSelectedIndex() == 0) {
                    JOptionPane.showMessageDialog(null, "Preencha os campos corretamente", null, JOptionPane.ERROR_MESSAGE);

                }else{
                    int confirmacao = JOptionPane.showConfirmDialog(null,"Deseja prosseguir com a operação?",null,JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE);
                    if (confirmacao == JOptionPane.YES_OPTION){
                        JOptionPane.showMessageDialog(null,"Usuario cadastrado com sucesso!",null,JOptionPane.INFORMATION_MESSAGE);
                        //JOptionPane.showMessageDialog(null, "Não pode deixar nada em branco!", null, JOptionPane.ICON_PROPERTY);
                        
                        String nomeArea = (cb_usereditarea.getSelectedItem().toString());
                        Area nova_area = new Area (nomeArea , "abrev" , 2);
                        Permissao nova_permissao = new Permissao (nova_area);
                        Usuario novo_usuario = new Usuario(ct_usereditname.getText(), ct_usereditcpf.getText(), nova_permissao);
                        DefaultTableModel dtm = (DefaultTableModel) tb_edituser.getModel();
                        Object[] opcoes = {ct_usereditname.getText(), ct_usereditcpf.getText(), cb_usereditcargo.getSelectedItem(), cb_usereditarea.getSelectedItem()};
                        dtm.addRow(opcoes);

                        ct_usereditname.setText("");
                        ct_usereditcpf.setText("");
                        cb_usereditarea.setSelectedIndex(0);
                        cb_usereditcargo.setSelectedIndex(0);

                    }

                }

                /*} catch (Exception e) {
                * JOptionPane.showMessageDialog(null,"Forneça apenas números naturais.",null,JOptionPane.INFORMATION_MESSAGE);
                *
                * }*/
        }
    }//GEN-LAST:event_bt_cadastrar_usuarioActionPerformed

    private void jb_removerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_removerActionPerformed

       
       
        DefaultTableModel dtm = (DefaultTableModel) tb_edituser.getModel();

        int linha = tb_edituser.getSelectedRow();
        Object[] dados = {ct_usereditname.getText(), ct_usereditcpf.getText(), cb_usereditarea.getSelectedItem()};

        dtm.removeRow(linha);
        JOptionPane.showMessageDialog(null, "Funcionário removido com sucesso!");
    }//GEN-LAST:event_jb_removerActionPerformed

    
    
    
    private void cb_usereditareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cb_usereditareaActionPerformed
        // TODO add your handling code here:
        
        if(cb_usereditarea.getSelectedItem().equals("Selecionar")){
        ct_abrevUsuario.setVisible(false);
        ct_codigoUsuario.setVisible(false);
        jb_abrevUsuario.setVisible(false);
        jb_codigoUsuario.setVisible(false);

        }else{
        ct_abrevUsuario.setVisible(true);
        ct_codigoUsuario.setVisible(true);
        jb_abrevUsuario.setVisible(true);
        jb_codigoUsuario.setVisible(true);

        }
    }//GEN-LAST:event_cb_usereditareaActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(CadastrarUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(CadastrarUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(CadastrarUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(CadastrarUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CadastrarUsuario().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bt_cadastrar_usuario;
    public static javax.swing.JButton bt_edituser;
    private javax.swing.JButton bt_limparuser;
    private javax.swing.JButton bt_salvaruser;
    private javax.swing.JComboBox cb_usereditarea;
    private javax.swing.JComboBox cb_usereditcargo;
    private javax.swing.JTextField ct_abrevUsuario;
    private javax.swing.JTextField ct_codigoUsuario;
    private javax.swing.JTextField ct_usereditcpf;
    private javax.swing.JTextField ct_usereditname;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JLabel jb_abrevUsuario;
    private javax.swing.JLabel jb_codigoUsuario;
    private javax.swing.JButton jb_remover;
    private javax.swing.JLabel jl_area2;
    private javax.swing.JLabel jl_cargo2;
    private javax.swing.JLabel jl_username;
    private javax.swing.JLabel jla_usercpf;
    public static javax.swing.JTable tb_edituser;
    // End of variables declaration//GEN-END:variables
}
